#
#  parallel execution demo Makefile
#

SHELL = /bin/sh


TOPDIR = ../..
include $(TOPDIR)/Makefile.common

JAVA  = java  -Xms64m -classpath $(SSFNET_TEST_CLASSPATH)

all:  t1 t2 t3 t6

	
t1:
	@echo '    ..... 4 runs will take about 6 minutes on a dual 800 MHz PIII box ....'
	@echo ' '
	$(JAVA)  SSF.Net.Net 200 networks.dml campus24x6random-1.dml params.dml ../net.dml > test-1-raw.log  2>&1
	@grep SUCCESS test-1-raw.log > .successes.out
	@sort -n .successes.out > test-1-sorted.log
	@tail -3 test-1-raw.log 	
	@echo '----------------------- 1 TIMELINE RUN COMPLETED ---------------------'
	
t2:
	$(JAVA)  SSF.Net.Net 200 networks.dml campus24x6random-2.dml params.dml ../net.dml > test-2-raw.log  2>&1
	@grep SUCCESS test-2-raw.log > .successes.out
	@sort -n .successes.out > test-2-sorted.log
	@tail -3 test-2-raw.log		
	@echo '----------------------- 2 TIMELINE RUN COMPLETED ---------------------'
	
t3:
	$(JAVA)  SSF.Net.Net 200 networks.dml campus24x6random-3.dml params.dml ../net.dml > test-3-raw.log  2>&1
	@grep SUCCESS test-3-raw.log > .successes.out
	@sort -n .successes.out > test-3-sorted.log
	@tail -3 test-3-raw.log
	@echo '----------------------- 3 TIMELINE RUN COMPLETED ---------------------'
	
t6:
	$(JAVA)  SSF.Net.Net 200 networks.dml campus24x6random-6.dml params.dml ../net.dml > test-6-raw.log  2>&1
	@grep SUCCESS test-6-raw.log > .successes.out
	@sort -n .successes.out > test-6-sorted.log
	@tail -3 test-6-raw.log
	@echo '----------------------- 6 TIMELINE RUN COMPLETED ---------------------'
				
clean:
	rm -f *.log *.out .*.out


